home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1995 November
/
EnigmA AMIGA RUN 02 (1995)(G.R. Edizioni)(IT)[!][issue 1995-11][Skylink CD].iso
/
earcd
/
program
/
gcc
/
libmat.lha
/
src
/
mconstmult1.cc
< prev
next >
Wrap
C/C++ Source or Header
|
1980-01-01
|
228b
|
13 lines
// MATRIX LIB
// TOMMY JOHANSSON 1995
#include "matrix.h"
Matrix operator * (float x,const Matrix& A)
{
int i,j;
Matrix C(A.m,A.n);
for(i=1;i<=A.m;i++)
for(j=1;j<=A.n;j++)
C.koff[i][j]=x*A.koff[i][j];
return(C);
}